home *** CD-ROM | disk | FTP | other *** search
/ C++ für Kids / C++ for kids.iso / SETUP / US / CBUILDER / DATA.Z / STDCTRLS.HPP < prev    next >
C/C++ Source or Header  |  1997-02-13  |  39KB  |  1,092 lines

  1. //----------------------------------------------------------------------------
  2. // StdCtrls.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
  3. // From: StdCtrls.pas
  4. //----------------------------------------------------------------------------
  5. #ifndef StdCtrlsHPP
  6. #define StdCtrlsHPP
  7. //----------------------------------------------------------------------------
  8. #include <Graphics.hpp>
  9. #include <Menus.hpp>
  10. #include <Forms.hpp>
  11. #include <Controls.hpp>
  12. #include <Classes.hpp>
  13. #include <SysUtils.hpp>
  14. #include <Windows.hpp>
  15. #include <Messages.hpp>
  16. #include <System.hpp>
  17. #pragma warn -par
  18. #pragma warn -hid 
  19. #pragma warn -inl
  20.  
  21. namespace Stdctrls
  22. {
  23. //-- type declarations -------------------------------------------------------
  24. class __declspec(delphiclass) TCustomGroupBox;
  25. class __declspec(pascalimplementation) TCustomGroupBox : public Controls::TCustomControl
  26. {
  27.     typedef Controls::TCustomControl inherited;
  28.     
  29. private:
  30.     HIDESBASE MESSAGE void __fastcall CMDialogChar(Messages::TWMKey &Message);
  31.     MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
  32.     HIDESBASE MESSAGE void __fastcall CMCtl3DChanged(Messages::TMessage &Message);
  33.     
  34. protected:
  35.     virtual void __fastcall AlignControls(Controls::TControl* AControl, Windows::TRect &Rect);
  36.     virtual void __fastcall Paint(void);
  37.     
  38. public:
  39.     __fastcall virtual TCustomGroupBox(Classes::TComponent* AOwner);
  40. public:
  41.     /* TCustomControl.Destroy */ __fastcall virtual ~TCustomGroupBox(void) { }
  42.     
  43. public:
  44.     /* TWinControl.CreateParented */ __fastcall TCustomGroupBox(HWND ParentWindow) : Controls::TCustomControl(
  45.         ParentWindow) { }
  46.     
  47. };
  48.  
  49. class __declspec(delphiclass) TGroupBox;
  50. class __declspec(pascalimplementation) TGroupBox : public TCustomGroupBox
  51. {
  52.     typedef TCustomGroupBox inherited;
  53.     
  54. __published:
  55.     __property Align ;
  56.     __property Caption ;
  57.     __property Color ;
  58.     __property Ctl3D ;
  59.     __property DragCursor ;
  60.     __property DragMode ;
  61.     __property Enabled ;
  62.     __property Font ;
  63.     __property ParentColor ;
  64.     __property ParentCtl3D ;
  65.     __property ParentFont ;
  66.     __property ParentShowHint ;
  67.     __property PopupMenu ;
  68.     __property ShowHint ;
  69.     __property TabOrder ;
  70.     __property TabStop ;
  71.     __property Visible ;
  72.     __property OnClick ;
  73.     __property OnDblClick ;
  74.     __property OnDragDrop ;
  75.     __property OnDragOver ;
  76.     __property OnEndDrag ;
  77.     __property OnEnter ;
  78.     __property OnExit ;
  79.     __property OnMouseDown ;
  80.     __property OnMouseMove ;
  81.     __property OnMouseUp ;
  82.     __property OnStartDrag ;
  83. public:
  84.     /* TCustomGroupBox.Create */ __fastcall virtual TGroupBox(Classes::TComponent* AOwner) : Stdctrls::
  85.         TCustomGroupBox(AOwner) { }
  86.     
  87. public:
  88.     /* TCustomControl.Destroy */ __fastcall virtual ~TGroupBox(void) { }
  89.     
  90. public:
  91.     /* TWinControl.CreateParented */ __fastcall TGroupBox(HWND ParentWindow) : Stdctrls::TCustomGroupBox(
  92.         ParentWindow) { }
  93.     
  94. };
  95.  
  96. class __declspec(delphiclass) TCustomLabel;
  97. class __declspec(pascalimplementation) TCustomLabel : public Controls::TGraphicControl
  98. {
  99.     typedef Controls::TGraphicControl inherited;
  100.     
  101. private:
  102.     Controls::TWinControl* FFocusControl;
  103.     TAlignment FAlignment;
  104.     bool FAutoSize;
  105.     bool FWordWrap;
  106.     bool FShowAccelChar;
  107.     void __fastcall AdjustBounds(void);
  108.     void __fastcall DoDrawText(Windows::TRect &Rect, Word Flags);
  109.     bool __fastcall GetTransparent(void);
  110.     void __fastcall SetAlignment(Classes::TAlignment Value);
  111.     void __fastcall SetFocusControl(Controls::TWinControl* Value);
  112.     void __fastcall SetShowAccelChar(bool Value);
  113.     void __fastcall SetTransparent(bool Value);
  114.     void __fastcall SetWordWrap(bool Value);
  115.     MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
  116.     HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
  117.     MESSAGE void __fastcall CMDialogChar(Messages::TWMKey &Message);
  118.     
  119. protected:
  120.     virtual System::AnsiString __fastcall GetLabelText(void);
  121.     virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
  122.         );
  123.     virtual void __fastcall Paint(void);
  124.     virtual void __fastcall SetAutoSize(bool Value);
  125.     __property Classes::TAlignment Alignment = {read=FAlignment, write=SetAlignment, default=0};
  126.     __property bool AutoSize = {read=FAutoSize, write=SetAutoSize, default=1};
  127.     __property Controls::TWinControl* FocusControl = {read=FFocusControl, write=SetFocusControl, nodefault
  128.         };
  129.     __property bool ShowAccelChar = {read=FShowAccelChar, write=SetShowAccelChar, default=1};
  130.     __property bool Transparent = {read=GetTransparent, write=SetTransparent, default=0};
  131.     __property bool WordWrap = {read=FWordWrap, write=SetWordWrap, default=0};
  132.     
  133. public:
  134.     __fastcall virtual TCustomLabel(Classes::TComponent* AOwner);
  135.     __property Canvas ;
  136. public:
  137.     /* TGraphicControl.Destroy */ __fastcall virtual ~TCustomLabel(void) { }
  138.     
  139. };
  140.  
  141. class __declspec(delphiclass) TLabel;
  142. class __declspec(pascalimplementation) TLabel : public TCustomLabel
  143. {
  144.     typedef TCustomLabel inherited;
  145.     
  146. __published:
  147.     __property Align ;
  148.     __property Alignment ;
  149.     __property AutoSize ;
  150.     __property Caption ;
  151.     __property Color ;
  152.     __property DragCursor ;
  153.     __property DragMode ;
  154.     __property Enabled ;
  155.     __property FocusControl ;
  156.     __property Font ;
  157.     __property ParentColor ;
  158.     __property ParentFont ;
  159.     __property ParentShowHint ;
  160.     __property PopupMenu ;
  161.     __property ShowAccelChar ;
  162.     __property ShowHint ;
  163.     __property Transparent ;
  164.     __property Visible ;
  165.     __property WordWrap ;
  166.     __property OnClick ;
  167.     __property OnDblClick ;
  168.     __property OnDragDrop ;
  169.     __property OnDragOver ;
  170.     __property OnEndDrag ;
  171.     __property OnMouseDown ;
  172.     __property OnMouseMove ;
  173.     __property OnMouseUp ;
  174.     __property OnStartDrag ;
  175. public:
  176.     /* TCustomLabel.Create */ __fastcall virtual TLabel(Classes::TComponent* AOwner) : Stdctrls::TCustomLabel(
  177.         AOwner) { }
  178.     
  179. public:
  180.     /* TGraphicControl.Destroy */ __fastcall virtual ~TLabel(void) { }
  181.     
  182. };
  183.  
  184. enum TEditCharCase { ecNormal, ecUpperCase, ecLowerCase };
  185.  
  186. class __declspec(delphiclass) TCustomEdit;
  187. class __declspec(pascalimplementation) TCustomEdit : public Controls::TWinControl
  188. {
  189.     typedef Controls::TWinControl inherited;
  190.     
  191. private:
  192.     int FMaxLength;
  193.     TFormBorderStyle FBorderStyle;
  194.     char FPasswordChar;
  195.     bool FReadOnly;
  196.     bool FAutoSize;
  197.     bool FAutoSelect;
  198.     bool FHideSelection;
  199.     bool FOEMConvert;
  200.     TEditCharCase FCharCase;
  201.     bool FCreating;
  202.     bool FModified;
  203.     Classes::TNotifyEvent FOnChange;
  204.     void __fastcall AdjustHeight(void);
  205.     virtual void __fastcall DefaultHandler(void *Message);
  206.     bool __fastcall GetModified(void);
  207.     int __fastcall GetSelLength(void);
  208.     int __fastcall GetSelStart(void);
  209.     System::AnsiString __fastcall GetSelText(void);
  210.     void __fastcall SetAutoSize(bool Value);
  211.     void __fastcall SetBorderStyle(Forms::TBorderStyle Value);
  212.     void __fastcall SetCharCase(TEditCharCase Value);
  213.     void __fastcall SetHideSelection(bool Value);
  214.     void __fastcall SetMaxLength(int Value);
  215.     void __fastcall SetModified(bool Value);
  216.     void __fastcall SetOEMConvert(bool Value);
  217.     void __fastcall SetPasswordChar(char Value);
  218.     void __fastcall SetReadOnly(bool Value);
  219.     void __fastcall SetSelLength(int Value);
  220.     void __fastcall SetSelStart(int Value);
  221.     void __fastcall SetSelText(const System::AnsiString Value);
  222.     void __fastcall UpdateHeight(void);
  223.     MESSAGE void __fastcall WMSetFont(Messages::TWMSetFont &Message);
  224.     HIDESBASE MESSAGE void __fastcall CMCtl3DChanged(Messages::TMessage &Message);
  225.     HIDESBASE MESSAGE void __fastcall CMEnter(Messages::TWMNoParams &Message);
  226.     HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
  227.     MESSAGE void __fastcall CNCommand(Messages::TWMCommand &Message);
  228.     MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
  229.     
  230. protected:
  231.     virtual void __fastcall Change(void);
  232.     virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
  233.     virtual void __fastcall CreateWnd(void);
  234.     virtual void __fastcall DestroyWnd(void);
  235.     __property bool AutoSelect = {read=FAutoSelect, write=FAutoSelect, default=1};
  236.     __property bool AutoSize = {read=FAutoSize, write=SetAutoSize, default=1};
  237.     __property Forms::TBorderStyle BorderStyle = {read=FBorderStyle, write=SetBorderStyle, defaul